package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author zhangyy
 * @since 2020-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_first_vessel_order_package")
public class FirstVesselOrderPackageDo extends Model<FirstVesselOrderPackageDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 头程订单主表id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * po号
     */
    @TableField("po_number")
    private String poNumber;

    /**
     * 货件编号
     */
    @TableField("upc_number")
    private String upcNumber;

    /**
     * 箱数
     */
    @TableField("count")
    private int count;

    /**
     * 重量
     */
    @TableField("weight")
    private double weight;

    /**
     * 长
     */
    @TableField("length")
    private double length;

    /**
     * 宽
     */
    @TableField("width")
    private double width;

    /**
     * 高
     */
    @TableField("height")
    private double height;

    /**
     * 备注
     */
    @TableField("package_remark")
    private String packageRemark;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
